import axios from "axios";

const bannerApi = {
  getAllSwiper() {
    return axios.get('/admin/getAllSwiper')
  },
  addSwiper(data) {
    return axios.post('/admin/addSwiper', data)
  },
  deleteSwiper(params) {
    return axios.get('/admin/deleteSwiper', {
      params
    })
  },
  updateSwiper(data) {
    return axios.post('/admin/updateSwiper', data)
  }
}

export default bannerApi